s = input("请输入一个字符串，以空格分隔： ")
count = {}
for char in s:
    if char.isalnum():
        count[char] = count.get(char, 0) + 1
print(count)